package l2

import (
	hl2 "zstackgo/pkg/header/network/l2"
)

type L2VlanNetwork struct {
	*L2NoVlanNetwork
	Vlan int
}

func NewL2VlanNetwork(self *hl2.L2NetworkVO) *L2VlanNetwork {
	return &L2VlanNetwork{
		L2NoVlanNetwork: NewL2NoVlanNetwork(self),
	}
}

func (vlan *L2VlanNetwork) GetSelf() *hl2.L2VlanNetworkVO {
	return &hl2.L2VlanNetworkVO{
		L2NetworkVO: vlan.Self,
	}
}

func (vlan *L2VlanNetwork) GetSelfInventory() *hl2.L2NetworkInventory {
	return hl2.L2VlanNetworkInventoryValueOf(vlan.GetSelf()).L2NetworkInventory
}
